﻿using System.Collections.Generic;

namespace Hibiku.Twitter
{
    public static class ResponseFormatMimeRegistry
    {
        private static readonly Dictionary<EResponseFormat, string> s_map = new Dictionary<EResponseFormat, string>() {
            {EResponseFormat.Json, "application/json"},
            {EResponseFormat.Rss, "application/rss+xml"},
            {EResponseFormat.Atom, " application/atom+xml"},
            {EResponseFormat.Xml, "text/xml"}
        };

        public static string GetMimeType(EResponseFormat format)
        {
            return s_map[format];
        }
    }
}